package elEMAS.moTSP;

import java.util.Properties;

import moTSP.TownsMap;
import moTSP.TspGeneticOperations;
import moTSP.TspGenotype;

import common.GeneticOperations;

import elEMAS.impl.EmasParameters;
import elEMAS.impl.EmasRunner;

public class EmasTspRunner extends EmasRunner<TspGenotype> {

    @Override
    public GeneticOperations<TspGenotype> getGeneticOperations(
            Properties properties, EmasParameters params) {
       
        double inverover_p = Double.parseDouble(properties.getProperty("inverover_p"));
        TownsMap cm = new TownsMap(params.inputFile);
        
        TspGeneticOperations go = new TspGeneticOperations(cm,inverover_p);
        return go;
    }
    
    public static void main (String[] args) {
        new EmasTspRunner().start("Tsp", args);
    }
    
    
}
